package com.lin.lostandfound.test;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;

public class Data extends MySqlBackupTest{

	
	public static void main(String[] args) {
		Data data = new Data();
		data.clone();
	}
	
	
	
	
	
	@Override
	public Object clone(){
		Connection connection = this.getConnection();
		
		try {
			Statement statement = connection.createStatement();
			//String sql = "UPDATE pickthings SET ThingsName = '包',ThingsDes = 'LV包',PickPlace = '麒麟公园' WHERE ThingsName like '%钥匙%';";
			String sql = "UPDATE lostthings SET ThingsName = '公交卡',LostPlace = '潇湘路',ThingsType = 'card',ThingsDes = '一张公交卡';";
			
			int i = statement.executeUpdate(sql);
			System.out.println(i);
		} catch (SQLException e) {
			
			e.printStackTrace();
		}
		
		
		return false;
	}
}
